package com.zzty.txj1.service.impl;

import com.zzty.txj1.dao.RunLimitTimeDao;
import com.zzty.txj1.entity.RunLimitTime;
import com.zzty.txj1.service.RunLimitTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RunLimitTimeServiceImpl implements RunLimitTimeService {
    @Autowired
    private RunLimitTimeDao runLimitTimeDao;

    @Override
    public RunLimitTime getRunLimitTimeByClazzId(RunLimitTime runLimitTime) {
        RunLimitTime runLimitTime1=runLimitTimeDao.getRunLimitTimeByClazzId(runLimitTime);
        return runLimitTime1;
    }

    @Override
    public Integer addRunLimitTime(RunLimitTime runLimitTime) {
        Integer count=runLimitTimeDao.addRunLimitTime(runLimitTime);
        return count;
    }

    @Override
    public List<RunLimitTime> getAllRunLimitTime() {
        List<RunLimitTime> runLimitTimes=runLimitTimeDao.getAllRunLimitTime();
        return runLimitTimes;
    }

    @Override
    public Integer updateLimitTimeById(RunLimitTime runLimitTime) {
        Integer count=runLimitTimeDao.updateLimitTimeById(runLimitTime);
        return count;
    }

    @Override
    public Integer deleteRunLimitTimeById(RunLimitTime runLimitTime) {
        Integer count=runLimitTimeDao.deleteRunLimitTimeById(runLimitTime);
        return count;
    }
}

